package com.java.dp.singleton;

/**
 * @Author lizhilong
 * @create 2019/12/2 14:30
 * @desc
 */
public class Singleton2 {

    private Singleton2() {

    }

    private static class SingletonHolder {
        private static Singleton2 instance = new Singleton2();
    }

    public static Singleton2 getInstance() {
        return SingletonHolder.instance;
    }
}
